


let isPhone = (phone) => {
	let re = /^1(3|4|5|6|7|8|9)\d{9}$/;
	if (!re.test(phone)) {
		return 'phoneErr'
	}
}


let isPwd =  (pwd) => {
	let re = /^[a-zA-Z0-9]*([a-zA-Z][0-9]|[0-9][a-zA-Z])[a-zA-Z0-9]*$/;
	if (!re.test(pwd)) {
		return 'pwdErr'
	}
}

let isEmail = (email) => {
	let re = /^([0-9A-Za-z\-_\.]+)@([0-9a-z]+\.[a-z]{2,3}(\.[a-z]{2})?)$/g;
	if (!re.test(email)) {
		return 'emailErr'
	}
}

export  {isPhone,isPwd,isEmail};